package com.mrx.commons.config;

/**
 * redis 相关常量
 *
 * @author Mr.X
 * @since 2023-01-14 11:33
 */
public class RedisConstant {

    /**
     * token redis key prefix
     */
    public static final String USER_PREFIX = "user:";

    /**
     * 验证码 redis key prefix
     */
    public static final String CAPTCHA_PREFIX = "captcha:";

    /**
     * pv redis key prefix
     */
    public static final String PV_PREFIX = "pv:";

    /**
     * online user redis key prefix
     */
    public static final String ONLINE_USER_PREFIX = "online:";

    /**
     * 绑定邮箱时的 redis key prefix
     */
    public static final String BIND_MAIL_PREFIX = "bindMail:";

    /**
     * 接口限流的 reds key prefix
     */
    public static final String RATE_LIMITER_PREFIX = "rateLimiter:";

    /**
     * token 有效期, 分钟
     */
    public static final int DEFAULT_TOKEN_TTL = 10;


}
